More css key bindings removal
authorMatthias Clasen <mclasen@redhat.com>
Thu, 21 Feb 2019 22:36:29 +0000 (17:36 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Feb 2019 22:36:29 +0000 (17:36 -0500)
One more :(

gtk/gtkbindings.c

index eb38394a086cda48cd753232fe01299905df309a..23ae6e0514008d92039b9ebc2c81ce2ec889a923 100644 (file)
@@ -1344,40 +1344,13 @@ gtk_bindings_activate_list (GObject  *object,
                             GSList   *entries,
                             gboolean  is_release)
 {
-  GtkStyleContext *context;
   GtkBindingSet *binding_set;
   gboolean handled = FALSE;
   gboolean unbound = FALSE;
-  GPtrArray *array;
 
   if (!entries)
     return FALSE;
 
-  context = gtk_widget_get_style_context (GTK_WIDGET (object));
-
-  gtk_style_context_get (context,
-                         "-gtk-key-bindings", &array,
-                         NULL);
-  if (array)
-    {
-      gint i;
-
-      for (i = 0; i < array->len; i++)
-        {
-          binding_set = g_ptr_array_index (array, i);
-          handled = binding_activate (binding_set, entries,
-                                      object, is_release,
-                                      &unbound);
-          if (handled || unbound)
-            break;
-        }
-
-      g_ptr_array_unref (array);
-
-      if (unbound)
-        return FALSE;
-    }
-
   if (!handled)
     {
       GType class_type;